<cfcomponent displayname="Application" output="false">

	<cfscript>
		this.name = 'DomainFramework';
		this.applicationtimeout=CreateTimeSpan(0,4,0,0);

		private Void function getInstances() {
			Application.config = {
									frameworkName : "",
									customExceptionInternal : "Framework Internal Error: ",
									customExceptionUser		: "Framework Bad Manipulation error: "
			};

			Application.instance = {};

			this.loadSingleton();
		}

		public Void function onApplicationStart() {
			this.getInstances();
		}
	</cfscript>

	<cffunction name="loadSingleton" access="private" output="false" returntype="void">

		<cflock scope="application" timeout="30" type="exclusive">
			<cfset Application.instance.factory = CreateObject( "component" , "coldweld.models.Factory" ).constructor() />
		</cflock>

	</cffunction>

</cfcomponent>
